package cn.cs.fallback;

import cn.cs.client.ComplaintClient;
import cn.cs.client.ComplaintTitleClient;
import cn.cs.pojo.Complaint;
import cn.cs.pojo.ComplaintTitle;
import cn.cs.pojo.CsPerson;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class ComplaintFallBack implements ComplaintClient {


    @Override
    public Complaint getComplaintUserById(String id) throws Exception {
        return null;
    }

    @Override
    public List<Complaint> getComplaintByPhone(String userId) throws Exception {
        return null;
    }

    @Override
    public List<Complaint> getComplaintListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getComplaintCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer itriptxAddComplaint(Complaint complaint) throws Exception {
        return null;
    }

    @Override
    public Integer itriptxModifyComplaint(Complaint complaint) throws Exception {
        return null;
    }

    @Override
    public Integer itriptxDeleteComplaintById(Long id) throws Exception {
        return null;
    }


    @Override
    public Map<String, Object> getAgentByRepairUserId(String id) throws Exception {
        return null;
    }

    @Override
    public Map<String, Object> getAgentABByRepairUserId(String id) throws Exception {
        return null;
    }

    @Override
    public Map<String, Object> getAgentABByOrderId(String id) throws Exception {
        return null;
    }

    @Override
    public Map<String, Object> getAgentABByAppOrderId(String id) throws Exception {
        return null;
    }
}
